/** 总体统计数据 */
export interface OverallStatsData {
  totalShops: number
  totalUsers: number
  totalOrders: number
  totalRevenue: number
  avgOrderValue: number
  completionRate: number
}

/** 商户类型分布数据 */
export interface ShopCategoryStatsData {
  category: string
  count: number
  percentage: number
}

/** 用户增长数据 */
export interface UserGrowthData {
  date: string
  userCount: number
  newUsers: number
  activeUsers: number
}

/** 订单统计数据 */
export interface OrderStatsData {
  date: string
  totalOrders: number
  completedOrders: number
  cancelledOrders: number
  revenue: number
}

/** 获取统计数据请求参数 */
export interface GetStatsRequestData {
  startDate?: string
  endDate?: string
  period?: 'day' | 'week' | 'month' | 'year'
}

/** 统计数据响应 */
export interface StatisticsResponseData {
  overall: OverallStatsData
  shopCategories: ShopCategoryStatsData[]
  userGrowth: UserGrowthData[]
  orderStats: OrderStatsData[]
  generatedAt: string
}

/** 实时统计数据 */
export interface RealTimeStatsData {
  onlineUsers: number
  todayOrders: number
  todayRevenue: number
  activeShops: number
  avgResponseTime: number
  systemLoad: number
}